import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'documentStatus',
  standalone: true
})
export class DocumentStatusPipe implements PipeTransform {
  transform(value: number): string {
    switch (value) {
      case 0:
        return '单据状态';
      case 1:
        return '草稿';
      case 2:
        return '待审核';
      case 3:
        return '已拒绝';
      case 4:
        return '已完成';
      default:
        return '未知状态';
    }
  }
}